<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="./vue.js"></script>
  <style>
    [v-cloak] {
      display: none;
    }
  </style>
</head>
<body>
  <!-- v-cloak属性是vue实例化之前存在，之后就自动消失 -->
  <!-- 咱们可以利用它让元素一开始的时候隐藏，有vue实例之后再显示 -->
  <div id="app" v-cloak>
    {{str}}
  </div>
  <script>

    setTimeout(() => {
      const app = new Vue({
        el: '#app',
        data: {
          str: 'hello'
        }
        
      })
    }, 1000)
    
  </script>
</body>
</html>